package com.jm.jisho.dict;

import com.jm.jisho.JJishoApp;
import com.jm.jisho.DownloadActivity;
import com.jm.jisho.dict.util.DialogActivity;
import com.jm.jisho.dict.util.DialogActivity.IDialogListener;

public class DownloaderDialogActivity
  implements IDialogListener
{
  public final DownloaderService.AbstractDownloader downloader;

  public DownloaderDialogActivity(DownloaderService.AbstractDownloader paramAbstractDownloader)
  {
    this.downloader = paramAbstractDownloader;
  }

  public void onPositiveClick(DialogActivity paramDialogActivity)
  {
    JJishoApp.getDownloader().download(this.downloader);
    DownloadActivity.launch(paramDialogActivity);
  }
}